<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title>我的收藏</title>  
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/detail.css" />
</head>
<body> 
<div class="details">
	<div class="collection">
    	<h2>我的收藏</h2>
        <div class="collectlist">
            <ul>
                <volist name="list" id="vo">
                    <li>
                        <if condition="$vo['state'] neq 1">
                            <a href="/Wx/SoldOut/index">
                            <else />
                            <a href="<?=U('Prodetail/index',array('id'=>$vo['g_id']))?>">
                        </if>
                            <div class="pic"><img src="{$vo.h_imgs}"/></div>
                            <div class="name">
                                <h3><b class="<?=$vo['type']=='门店'?'md':'xc'?>">{$vo.type}</b>{$vo.title}</h3>
                                <p>
                                    <b><img src="<?=$vo['m_info']['avatar']?>"/></b>
                                    <i><?=$vo['m_info']['nickname']?></i>
                                    <em><?=$vo['storename']?></em>
                                </p>
                            </div>
                            <if condition="$vo['state'] neq 1">
                                <!--判断商品是否失效-->
                                <div class="lose"><img src="__PUBLIC__/Wx/img/lose.png"/></div>
                            </if>

                        </a>
                        <div class="remove" data-id="{$vo.g_id}">取消收藏</div>
                    </li>
                </volist>
            </ul>
        </div>
    </div>
</div>
	<script type="text/javascript" src="__PUBLIC__/Wx/js/jquery-1.3.1.min.js"></script>
	<script type="text/javascript">
        $(".remove").click(function(){
            var re = $(this);
            var group_id = re.attr('data-id');
            $.post('/Wx/Prodetail/cancleCollect',{group_id:group_id},function (data) {
                re.parents("li").remove();
            })
        });
	</script>
</body>
</html>